;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "name": "人身意外险全年加强版",
            "company": "中国人民保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "100000",
            "acute_death": "",
            "accident_medical": "10000",
            "accident_hospital": "0",
            "accident_ambulance": "0",
            "airplane_death": "0",
            "train_death": "0",
            "ship_death": "0",
            "bus_death": "0",
            "private_death": "0",
            "price": "99.00"
        },
        "planB": {
            "name": "人身意外险全年加强版",
            "company": "中国人民保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "300000",
            "acute_death": "",
            "accident_medical": "20000",
            "accident_hospital": "50/天",
            "accident_ambulance": "0",
            "airplane_death": "0",
            "train_death": "0",
            "ship_death": "0",
            "bus_death": "0",
            "private_death": "0",
            "price": "288.00"
        },
        "planC": {
            "name": "人身意外险全年加强版",
            "company": "中国人民保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "300000",
            "acute_death": "50000",
            "accident_medical": "30000",
            "accident_hospital": "100/天",
            "accident_ambulance": "0",
            "airplane_death": "1000000",
            "train_death": "1000000",
            "ship_death": "500000",
            "bus_death": "100000",
            "private_death": "100000",
            "price": "376.00"
        },
        "planD": {
            "name": "人身意外险全年加强版",
            "company": "中国人民保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "500000",
            "acute_death": "100000",
            "accident_medical": "50000",
            "accident_hospital": "150/天",
            "accident_ambulance": "1000",
            "airplane_death": "5000000",
            "train_death": "2000000",
            "ship_death": "1000000",
            "bus_death": "300000",
            "private_death": "300000",
            "price": "728.00"
        }
    }
    for (k in plan) { mysql.insertData(plan[k]) };mysql.close();
}
